<%
  # This is a partial used to render images' thumbnail
  # Image's metadata must be passed in :image variable.

%>
  <figure>
      <a href='/caps/<%=@image[:file]%>'>
	<img src='/tn/<%=@image[:file]%>' 
	alt="<%=@image[:name]%> dans <%=@image[:title]%>(<%= tags_text(@image[:tags])%>)" />
    </a>
    <figcaption>
      <a href="<%=person_link(slug_for(@image[:name]))%>">
	<%=@image[:name]%>
      </a> 
      dans <%=@image[:title]%>
    </figcaption>
</figure>
